+1999-09-14 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/gdkcolor.c (gdk_colormap_new)
+ * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
+ colormap->colors was allocated twice.
+
+ * gdk/win32/gdk.c: Remove some unused stuff.
+
+ * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
+ colormap.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
+ * gtk/gtklabel.h (gtk_label_get_type)
+ * gtk/gtktipsquery.c (gtk_tips_query_get_type)
+ * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
+ in a couple of places, not guint.
+
Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/et.po: added Estonian language file
+1999-09-14 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/gdkcolor.c (gdk_colormap_new)
+ * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
+ colormap->colors was allocated twice.
+
+ * gdk/win32/gdk.c: Remove some unused stuff.
+
+ * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
+ colormap.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
+ * gtk/gtklabel.h (gtk_label_get_type)
+ * gtk/gtktipsquery.c (gtk_tips_query_get_type)
+ * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
+ in a couple of places, not guint.
+
Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/et.po: added Estonian language file
+1999-09-14 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/gdkcolor.c (gdk_colormap_new)
+ * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
+ colormap->colors was allocated twice.
+
+ * gdk/win32/gdk.c: Remove some unused stuff.
+
+ * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
+ colormap.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
+ * gtk/gtklabel.h (gtk_label_get_type)
+ * gtk/gtktipsquery.c (gtk_tips_query_get_type)
+ * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
+ in a couple of places, not guint.
+
Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/et.po: added Estonian language file
+1999-09-14 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/gdkcolor.c (gdk_colormap_new)
+ * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
+ colormap->colors was allocated twice.
+
+ * gdk/win32/gdk.c: Remove some unused stuff.
+
+ * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
+ colormap.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
+ * gtk/gtklabel.h (gtk_label_get_type)
+ * gtk/gtktipsquery.c (gtk_tips_query_get_type)
+ * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
+ in a couple of places, not guint.
+
Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/et.po: added Estonian language file
+1999-09-14 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/gdkcolor.c (gdk_colormap_new)
+ * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
+ colormap->colors was allocated twice.
+
+ * gdk/win32/gdk.c: Remove some unused stuff.
+
+ * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
+ colormap.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
+ * gtk/gtklabel.h (gtk_label_get_type)
+ * gtk/gtktipsquery.c (gtk_tips_query_get_type)
+ * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
+ in a couple of places, not guint.
+
Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/et.po: added Estonian language file
+1999-09-14 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/gdkcolor.c (gdk_colormap_new)
+ * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
+ colormap->colors was allocated twice.
+
+ * gdk/win32/gdk.c: Remove some unused stuff.
+
+ * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
+ colormap.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
+ * gtk/gtklabel.h (gtk_label_get_type)
+ * gtk/gtktipsquery.c (gtk_tips_query_get_type)
+ * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
+ in a couple of places, not guint.
+
Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/et.po: added Estonian language file
+1999-09-14 Tor Lillqvist <tml@iki.fi>
+
+ * gdk/gdkcolor.c (gdk_colormap_new)
+ * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
+ colormap->colors was allocated twice.
+
+ * gdk/win32/gdk.c: Remove some unused stuff.
+
+ * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
+ colormap.
+
+ * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
+ * gtk/gtklabel.h (gtk_label_get_type)
+ * gtk/gtktipsquery.c (gtk_tips_query_get_type)
+ * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
+ in a couple of places, not guint.
+
Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in,po/et.po: added Estonian language file
case GDK_VISUAL_GRAYSCALE:
case GDK_VISUAL_PSEUDO_COLOR:
private->info = g_new0 (GdkColorInfo, colormap->size);
- colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
(GCompareFunc) gdk_color_equal);
static void gdk_exit_func (void);
-static RETSIGTYPE gdk_signal (int signum);
-
/* Private variable declarations
*/
gdk_init_check (int *argc,
char ***argv)
{
- HRESULT hres;
gint i, j, k;
if (gdk_initialized)
case GDK_VISUAL_GRAYSCALE:
case GDK_VISUAL_PSEUDO_COLOR:
private->info = g_new0 (GdkColorInfo, colormap->size);
- colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
(GCompareFunc) gdk_color_equal);
colormap->colors[i].blue = (xpalette[i].peBlue * 65535) / 255;
}
+ for ( ; i < colormap->size; i++)
+ {
+ colormap->colors[i].pixel = i;
+ colormap->colors[i].red = 0;
+ colormap->colors[i].green = 0;
+ colormap->colors[i].blue = 0;
+ }
+
g_free (xpalette);
}
case GDK_VISUAL_GRAYSCALE:
case GDK_VISUAL_PSEUDO_COLOR:
private->info = g_new0 (GdkColorInfo, colormap->size);
- colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
(GCompareFunc) gdk_color_equal);
colormap->colors[i].blue = (xpalette[i].peBlue * 65535) / 255;
}
+ for ( ; i < colormap->size; i++)
+ {
+ colormap->colors[i].pixel = i;
+ colormap->colors[i].red = 0;
+ colormap->colors[i].green = 0;
+ colormap->colors[i].blue = 0;
+ }
+
g_free (xpalette);
}
static void gdk_exit_func (void);
-static RETSIGTYPE gdk_signal (int signum);
-
/* Private variable declarations
*/
gdk_init_check (int *argc,
char ***argv)
{
- HRESULT hres;
gint i, j, k;
if (gdk_initialized)
case GDK_VISUAL_GRAYSCALE:
case GDK_VISUAL_PSEUDO_COLOR:
private->info = g_new0 (GdkColorInfo, colormap->size);
- colormap->colors = g_new (GdkColor, colormap->size);
private->hash = g_hash_table_new ((GHashFunc) gdk_color_hash,
(GCompareFunc) gdk_color_equal);
* GtkFontSelectionDialog
*****************************************************************************/
-guint
+GtkType
gtk_font_selection_dialog_get_type (void)
{
static guint font_selection_dialog_type = 0;
};
-guint gtk_label_get_type (void);
+GtkType gtk_label_get_type (void);
GtkWidget* gtk_label_new (const char *str);
void gtk_label_set_text (GtkLabel *label,
const char *str);
/* --- functions --- */
-guint
+GtkType
gtk_tips_query_get_type (void)
{
static guint tips_query_type = 0;
const GtkTypeInfo *type_info);
void gtk_type_set_chunk_alloc (GtkType type,
guint n_chunks);
-gchar* gtk_type_name (guint type);
+gchar* gtk_type_name (GtkType type);
GtkType gtk_type_from_name (const gchar *name);
GtkType gtk_type_parent (GtkType type);
gpointer gtk_type_class (GtkType type);